/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package computing;

import com.jme3.math.Vector3f;
import java.math.BigDecimal;

/**
 *
 * @author oxplay
 */
public class Configurator {

    public static int PRECISION_VALUE = 1;
    public static float PRECISION_OFFSET = 1f*Configurator.PRECISION_VALUE;

    public static void setPrecisionValue(int prec){
        PRECISION_VALUE = prec;
        PRECISION_OFFSET = 1f*prec;
    }

    public static int getFloatToIntValue(float value) {
        int newVal = (int)Math.round(value/PRECISION_VALUE);
        return newVal;
    } 
    
    public static float getIntToFloatValue(int value) {
        float newVal = (float)value*PRECISION_VALUE;
        return newVal;
    } 
}
